package org.example.entity;

import java.sql.Time;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

/**
 * @BelongsProject: StudentSystem
 * @BelongsPackage: org.example.entity
 * @Author: StarBonny
 * @CreateTime: 2024-12-22  23:42
 * @Description: 答卷实体类
 * @Version: 1.0
 */
public class AnswerSheet {
    private int answerSheetId;
    private int score;
    private Time elapsedTime;
    private int studentIdFk;
    private int examPaperIdFk;
    private Date submitDate;

    @Override
    public String toString() {
        return "AnswerSheet{" +
                "answerSheetId=" + answerSheetId +
                ", score=" + score +
                ", elapsedTime=" + elapsedTime +
                ", studentIdFk=" + studentIdFk +
                ", examPaperIdFk=" + examPaperIdFk +
                ", submitDate=" + submitDate +
                '}';
    }

    public int getAnswerSheetId() {
        return answerSheetId;
    }

    public void setAnswerSheetId(int answerSheetId) {
        this.answerSheetId = answerSheetId;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Time getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(Time elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

    public int getStudentIdFk() {
        return studentIdFk;
    }

    public void setStudentIdFk(int studentIdFk) {
        this.studentIdFk = studentIdFk;
    }

    public int getExamPaperIdFk() {
        return examPaperIdFk;
    }

    public void setExamPaperIdFk(int examPaperIdFk) {
        this.examPaperIdFk = examPaperIdFk;
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public AnswerSheet(int answerSheetId, int score, Time elapsedTime, int studentIdFk, int examPaperIdFk, Date submitDate) {
        this.answerSheetId = answerSheetId;
        this.score = score;
        this.elapsedTime = elapsedTime;
        this.studentIdFk = studentIdFk;
        this.examPaperIdFk = examPaperIdFk;
        this.submitDate = submitDate;
    }

    public AnswerSheet() {}
}
